<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>管理员主页</title>
<style type="text/css">

#zuo{
	width:20%;
	height:400px;
	float:left;}

#you{width:80%;
	height:400px;
	float:right;
	margin:10px 0px 10px 0px;
	
	}
#bottom{width:100%;
	height:10%;
clear:both;
	background-color:#0FF;}

ul{list-style-type: none;
	height: 100%;
	margin-top: 20%;
}			
a:visited {
	text-decoration: none;
	color: #03C;
}
a:hover {
	text-decoration: none;
	color: #69C;
}
a:active {
	text-decoration: none;
}
a:link {
	
	text-decoration: none;
}
body{
color: #03C;
}
</style>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){

	//显示隐藏医生
	$("#doctor").click(function(){
		$("#adddoctor").toggle();
		});
	
	//显示隐藏新闻
	$("#news").click(function(){
		$("#addnews").toggle();
		});
	//显示隐藏公告
	$("#notice").click(function(){
		$("#addnotice").toggle();
		});
	//显示隐藏挂号体检信息
	$("#rpformmessage").click(function(){
		$("#selrpformmessage").toggle();
		});

});

</script>
</head>

<body>
<%if(session.getAttribute("manager")!=null){ %>
<div id="main">
	<div  id="top" >
		<img alt="title" src="images/managertitilepic.jpg" height="150px" width="100%">
	</div>
	
	<div id="middle">
		<div id="zuo">
			<ul >
				<li><h3 ><img src="images/lanseanniu.jpg" width="15px" height="15px" id="departments"><a href="selectalldepartmentsaction" >科室的管理</a></h3>
				</li>
				<li><h3><img src="images/lanseanniu.jpg" width="15px" height="15px" id="doctor"><a href="selectalldoctoraction" target="mainiframe">医生的管理</a></h3>
					<a id="adddoctor" style="display:none;" href="adddoctor.jsp" target="mainiframe">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;添加医生</a>
				</li>
				<li><h3><img src="images/lanseanniu.jpg" width="15px" height="15px"  id="news"><a href="selectallnewsaction" target="mainiframe">新闻的管理</a></h3>
					<a id="addnews" style="display:none;" href="addnews.jsp" target="mainiframe">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;添加新闻</a>
				</li>
				<li><h3><img src="images/lanseanniu.jpg" width="15px" height="15px"  id="notice"><a href="selectallnoticeaction" target="mainiframe">公告的管理</a></h3>
					<a id="addnotice" style="display:none;" href="addnotice.jsp" target="mainiframe">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;添加公告</a>
				</li>
				<li><h3><img src="images/lanseanniu.jpg" width="15px" height="15px"  id="rpformmessage">统计用户挂号体检信息</h3>
					<font id="selrpformmessage" style="display:none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;查询用户体检信息<br/><br/><a href="selectallregisterformaction" target="mainiframe">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;查询用户挂号信息</a></font>
				</li>
				<li><h3><img src="images/lanseanniu.jpg" width="15px" height="15px"  id="rpformmessage"><a href="managerexit">安全退出</a></h3>
				</li>
			</ul>
		</div>
		
		<div id="you">
			<iframe frameborder="0" scrolling="yes" src="managerdepartments.jsp" width="100%" name="mainiframe" height="100%"></iframe>
		</div>
	</div>
	
	<div id="bottom">
		<hr width="100%"/>
		<center>北京LOL有限公司<br/>www.jiuailol.com</center>
	</div>
</div>
<%} 
else{
	response.sendRedirect("managerlogin.jsp");
	
}
%>
</body>
</html>